<?php echo $tpl_header; ?>
<div class="clear"></div>
<div class="main mt10">
	<div class="g960 banner round-shadow white_bg">
		<div class="g640 mt10" id="slideshow">
			<div class="slideshow">
				<?php $i=0; foreach ($settings['homeslide'] as $slide):?>
				<?php $i++;?>
				<div <?php echo $i==1?'class="active"':''?>>
					<a target="_blank" href="<?php echo $slide['link_url'];?>">
						<img src="<?php echo base_url($slide['image_url']);?>" width="640" height="280"  onerror="this.src='<?php echo base_url().'assets/img/blank.png'?>';" /> 
					</a>
				</div>
				<?php endforeach;?>
			</div>
			<a href="#" id="prev" class="prev hide">Prev</a><a href="#" id="next" class="next hide">Next</a>
		</div>
		<div class="counter f_r of_h contentbox" id="con">
				<ul class="lastest_share" style="margin-top: 0px;">
					<?php foreach ($shares as $share):?>
					<li style="display: list-item;">
					<a href="<?php echo spUrl("detail","index", array("share_id"=> $share['share_id']));?>">
					<img
						src="<?php echo base_url().$share['image_path'].'_square.jpg'?>"
						width="50" height="50" onerror="this.src='<?php echo base_url().'assets/img/blank.png'?>';" />
					</a>
						<p><strong><a href="<?php echo spUrl('pub','index',array('uid'=>$share['poster_id']));?>"><?php echo $share['poster_nickname']?></a>:</strong><?php echo $share['intro']?></p><span class="sendtime"><?php echo friendlyDate($share['create_time']);?></span>
					</li>
					<?php endforeach;?>

				</ul>
		</div>
	</div>
</div>
<div class="clear"></div>
<div class="main mt20">
	<div class="g960 round-shadow white_bg">
		<div class="category-header mt10 boder-b ml10 mr10">
			<h5 title="吃货天下"><a href="javascript:void(0)">吃货天下</a></h5>
			<!-- <ul>
								<li><a href="/album-index-cat-1.html" target="_blank">家居生活</a></li>
								<li><a href="/album-index-cat-2.html" target="_blank">时装配饰</a></li>
								<li><a href="/album-index-cat-3.html" target="_blank">美食菜谱</a></li>
								<li><a href="/album-index-cat-4.html" target="_blank">旅行摄影</a></li>
								<li><a href="/album-index-cat-5.html" target="_blank">更多分享</a></li>
							</ul> -->
			
		</div>
		<div class="category-bd">
						<div class="album g225">
				<div class="album-header">
					
				</div>
				<ul class="image_list">
							        			        	<li>北京<a href="<?php echo spUrl("album","index", array("cat"=> 1));?>"          class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/28/1655_1348840711_square.jpg" /></a></li>
		        			        			        	<li>天津<a href="<?php echo spUrl("album","index", array("cat"=> 2));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/28/1655_1348840614_square.jpg" /></a></li>
		        			        			        	<li>河北<a href="<?php echo spUrl("album","index", array("cat"=> 4));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/28/1655_1348840516_square.jpg" /></a></li>
		        			        			        	<li>河南<a href="<?php echo spUrl("album","index", array("cat"=> 3));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/28/1655_1348840415_square.jpg" /></a></li>
		        			        			        	<li>山西<a href="<?php echo spUrl("album","index", array("cat"=> 6));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/28/1655_1348840263_square.jpg" /></a></li>
		        			        			        	<li>山东<a href="<?php echo spUrl("album","index", array("cat"=> 5));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/15/1655_1347714313_square.jpg" /></a></li>
		        			        			        	<li>黑龙江<a href="<?php echo spUrl("album","index", array("cat"=> 7));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/15/1655_1347714224_square.jpg" /></a></li>
		        			        			        	<li>辽宁<a href="<?php echo spUrl("album","index", array("cat"=> 9));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/15/1655_1347714109_square.jpg" /></a></li>
		        			        			        	<li>吉林<a href="<?php echo spUrl("album","index", array("cat"=> 8));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/15/1655_1347713914_square.jpg" /></a></li>
		        			        			        		        	</ul>
				
			</div>
						<div class="album g225">
				<div class="album-header">
					
				</div>
				<ul class="image_list">
							        			        	<li>浙江<a href="<?php echo spUrl("album","index", array("cat"=> 23));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/10/11/1372_1349924204_square.jpg" /></a></li>
		        			        			        	<li>江苏<a href="<?php echo spUrl("album","index", array("cat"=> 33));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/10/08/1372_1349661691_square.jpg" /></a></li>
		        			        			        	<li>上海<a href="<?php echo spUrl("album","index", array("cat"=> 25));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/10/07/1372_1349575928_square.jpg" /></a></li>
		        			        			        	<li>福建<a href="<?php echo spUrl("album","index", array("cat"=> 24));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/10/07/1372_1349575737_square.jpg" /></a></li>
		        			        			        	<li>安徽<a href="<?php echo spUrl("album","index", array("cat"=> 29));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/10/06/1372_1349491410_square.jpg" /></a></li>
		        			        			        	<li>江西<a href="<?php echo spUrl("album","index", array("cat"=> 34));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/10/06/1372_1349491349_square.jpg" /></a></li>
		        			        			        	<li>广东<a href="<?php echo spUrl("album","index", array("cat"=> 10));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/27/1372_1348715113_square.jpg" /></a></li>
		        			        			        	<li>广西<a href="<?php echo spUrl("album","index", array("cat"=> 11));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/24/1372_1348481047_square.jpg" /></a></li>
		        			        			        	<li>海南<a href="<?php echo spUrl("album","index", array("cat"=> 30));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/09/24/1372_1348480953_square.jpg" /></a></li>
		        			        			        		        	</ul>
				
			</div>
						<div class="album g225">
				<div class="album-header">
					
				</div>
				<ul class="image_list">
							        			        	<li>湖北<a href="<?php echo spUrl("album","index", array("cat"=> 13));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345870254_square.jpg" /></a></li>
		        			        			        	<li>湖南<a href="<?php echo spUrl("album","index", array("cat"=> 12));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345870249_square.jpg" /></a></li>
		        			        			        	<li>新疆<a href="/<?php echo spUrl("album","index", array("cat"=> 17));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345870082_square.jpg" /></a></li>
		        			        			        	<li>陕西<a href="<?php echo spUrl("album","index", array("cat"=> 14));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345869265_square.jpg" /></a></li>
		        			        			        	<li>甘肃<a href="<?php echo spUrl("album","index", array("cat"=> 15));?>"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345869138_square.jpg" /></a></li>
		        			        			        	<li>宁夏<a href="<?php echo spUrl("album","index", array("cat"=> 16));?>"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345869089_square.jpg" /></a></li>
		        			        			        	<li>青海<a href="<?php echo spUrl("album","index", array("cat"=> 18));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345868742_square.jpg" /></a></li>
		        			        			        	<li>西藏<a href="<?php echo spUrl("album","index", array("cat"=> 19));?>"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345868652_square.jpg" /></a></li>
		        			        			        	<li>内蒙<a href="<?php echo spUrl("album","index", array("cat"=> 28));?>"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1536_1345868583_square.jpg" /></a></li>
		        			        			        		        	</ul>
				
			</div>
						<div class="album g225">
				<div class="album-header">
					
				</div>
				<ul class="image_list">
							        			        	<li>贵州<a href="<?php echo spUrl("album","index", array("cat"=> 20));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345865723_square.jpg" /></a></li>
		        			        			        	<li>云南<a href="<?php echo spUrl("album","index", array("cat"=> 32));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345865050_square.jpg" /></a></li>
		        			        			        	<li>重庆<a href="<?php echo spUrl("album","index", array("cat"=> 31));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345864919_square.jpg" /></a></li>
		        			        			        	<li>四川<a href="<?php echo spUrl("album","index", array("cat"=> 21));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345864814_square.jpg" /></a></li>
		        			        			        	<li>台湾<a href="<?php echo spUrl("album","index", array("cat"=> 25));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345864568_square.jpg" /></a></li>
		        			        			        	<li>香港<a href="<?php echo spUrl("album","index", array("cat"=> 26));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345864220_square.jpg" /></a></li>
		        			        			        	<li>澳门<a href="<?php echo spUrl("album","index", array("cat"=> 27));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345862984_square.jpg" /></a></li>
		        			        			        	<li>钓鱼岛<a href="<?php echo spUrl("album","index", array("cat"=> 2));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345862253_square.jpg" /></a></li>
		        			        			        	<li>国外<a href="<?php echo spUrl("album","index", array("cat"=> 2));?>" class="trans07"><img src="http://taoker.pintuxiu.com/data/attachments/2012/08/25/1534_1345862070_square.jpg" /></a></li>
		        			        			        		        	</ul>
				<div class="album-footer">
					
				</div>
			</div>
					</div>
	</div>
</div>

<!-- - -->
<?php if($settings['ui_layout']['homepage_ad']&&$ads=$settings['homepage_ad']):?>
<?php foreach ($ads as $ad):?>
<div class="clear"></div>
<div class="main mt20">
	<div class="g960 round-shadow white_bg">
		 <iframe src="<?php echo spUrl('misc','adproxy',array('key'=>$ad['key'],'ad_position'=>'homepage_ad'));?>" width="<?php echo $ad['width'];?>" height="<?php echo $ad['height'];?>" frameborder="0" scrolling="no">
		 </iframe>
	</div>
</div>
<?php endforeach;?>
<?php endif;?>
<!-- friend link -->
<div class="clear"></div>
<div class="main mt20">
	<div class="g960 round-shadow white_bg">
		<div class="category-header boder-b mt10 ml10 mr10">
			<h5 title="<?php echo T('frindlink');?>"><a href="#" target="_blank"><?php echo T('frindlink');?></a></h5>
		</div>
		<div class="category-bd mt10 mb20 ml10 mr10">
		<?php foreach ($settings['frindlink'] as $link):?>
        	<div class="g80 friendlink"><a href="<?php echo $link['link_url'];?>" target="_blank"><?php echo $link['link_name'];?></a></div>
      	<?php endforeach;?>
		</div>
	</div>
</div>

<div class="clear"></div>
<?php echo $tpl_footer; ?>
